
export const checkRemark = (params={}) => {
    let pass = true;
    const {remark = ""} = params;
    let checkremark = remark;
    checkremark = checkremark.replace(/<br\>/ig, "");
    checkremark = checkremark.replace(/&nbsp;/ig, "");
    checkremark = checkremark.replace(/&lt;/ig, "<");
    checkremark = checkremark.replace(/&gt;/ig, ">");
    checkremark = checkremark.replace(/&quot;/ig, "\"");
    checkremark = checkremark.replace(/&amp;/ig, "&");
    if(checkremark.length <= 0) {
        pass =  false
    }
    return pass;
}